package com.fashiontextile.user.entity;

import com.fashiontextile.admin.entity.Dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Comment {

    private Long cid;

    private Dict dcid;

    private Long ctid;

    private Long uid;

    private String text;

    private Long parent;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date created;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Comment> children;
}
